LearningStoreJob.AddItem Method (string, IDictionary<string,object>)

Add a new item

Parent Type: LearningStoreJob

Namespace: Microsoft.LearningComponents.Storage

Assembly: Microsoft.LearningComponents.Storage.dll

Syntax
C#

public LearningStoreItemIdentifier AddItem (
string itemTypeName,
IDictionary<string,object> propertyValues

)

Parameters

itemTypeName

The name of the item type to add

propertyValues

Property values for the item.

Return Value

A temporary LearningStoreItemIdentifier that identifies the item being added.

Exceptions
Exception type Condition
ArgumentNullException

itemTypeName or propertyValuesis a null reference.

System.InvalidOperationException

The item type in itemTypeName doesn't exist in the store, a property name passed in propertyValues doesn't exist on the item type, a property value passed in propertyValues is not a valid value for the corresponding property, or a required property wasn't passed in propertyValues.

Remarks

Calls AddItem(itemTypeName, propertyValues, false). See that overload for more details.